←Select platform

AddRange Method

Summary

Adds multiple items to the end of the collection.

Syntax

C#
VB
C++
public virtual void AddRange( 
   IEnumerable<T> items 
) 
Public Overridable Sub AddRange( 
   ByVal items As IEnumerable(Of T) 
) 
public:  
   virtual void AddRange( 
      IEnumerable<T>^ items 
   ) 

Parameters

items

The IEnumerable<T> of objects to insert. The objects can be null for reference types.

Remarks

LeadCollection<T> accepts null as a valid value for reference types and allows duplicate items.

This method is essentially InsertRange with the index parameter set to Count.

This method raises the CollectionChanged event with the Add action.

Requirements

Target Platforms

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools Assembly